<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentAvaterFix extends Migrator
{
    public function up()
    {

        $this->table('agent')
            ->changeColumn('avatar', 'string', ['limit' => 500, 'default' => '', 'comment' => '头像'])

            ->update();
    }

    public function down()
    {
        $this->table('agent')
            ->changeColumn('avatar', 'string', ['limit' => 100, 'default' => '', 'comment' => '头像'])
            ->update();
    }
}
